/* eslint no-unused-vars:0 */
import React from 'react';
import './index.less';
import { Menu, Col, Row, Icon, Input } from 'antd';
import { Link, Switch, Route } from 'react-router-dom';
import Overview from './Overview';
import PoliticalRisks from './PoliticalRisks';
import SafetyRisks from './SafetyRisks';
import ReputationalRisks from './ReputationalRisks';
import SchoolLeaderRisks from './SchoolLeaderRisks';

export default class OurSchoolSituation extends React.Component {
    render() {
        return (
            <div className="body">
                <div
                    style={{
                        marginTop: '20px'
                    }}>
                    <span className="OurSchoolSituation-title">我校动态</span>
                </div>
                <Menu mode="horizontal">
                    <Menu.Item>
                        <Link to="/admin/OurSchoolSituation/Overview">
                            总览
                        </Link>
                    </Menu.Item>
                    <Menu.Item>
                        <Link to="/admin/OurSchoolSituation/PoliticalRisks">
                            政治话题
                        </Link>
                    </Menu.Item>
                    <Menu.Item>
                        <Link to="/admin/OurSchoolSituation/SchoolLeaderRisks">
                            校领导话题
                        </Link>
                    </Menu.Item>
                    <Menu.Item>
                        <Link to="/admin/OurSchoolSituation/SafetyRisks">
                            安全话题
                        </Link>
                    </Menu.Item>
                    <Menu.Item>
                        <Link to="/admin/OurSchoolSituation/ReputationalRisks">
                            其它
                        </Link>
                    </Menu.Item>
                    <Menu.Item>
                        <Link to="/admin/OthersSituation/OOverview">
                            他校动态
                        </Link>
                    </Menu.Item>
                </Menu>
                <Switch>
                    <Route
                        exact
                        path="/admin/OurSchoolSituation/"
                        component={Overview}
                    />
                    <Route
                        path="/admin/OurSchoolSituation/Overview"
                        component={Overview}
                    />
                    <Route
                        path="/admin/OurSchoolSituation/PoliticalRisks"
                        component={PoliticalRisks}
                    />
                    <Route
                        path="/admin/OurSchoolSituation/SafetyRisks"
                        component={SafetyRisks}
                    />
                    <Route
                        path="/admin/OurSchoolSituation/ReputationalRisks"
                        component={ReputationalRisks}
                    />
                    <Route
                        path="/admin/OurSchoolSituation/SchoolLeaderRisks"
                        component={SchoolLeaderRisks}
                    />
                </Switch>
            </div>
        );
    }
}
